 /**
   * Copyright 2014 Viettel Telecom. All rights reserved.
   * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
   */
 package com.viettel.core.dao.service; 
import java.util.ArrayList; 
import java.util.List; 

import org.hibernate.type.StandardBasicTypes; 
import org.hibernate.type.Type; 
import org.springframework.beans.factory.annotation.Autowired; 

import com.viettel.core.exceptions.DataAccessException; 
import com.viettel.core.entities.service.MTCSKH; 
import com.viettel.core.repo.IRepository;
 /**
   *  Mo ta muc dich cua lop (interface)
   *  @author: TOANTM1
   *  @version:  
   *  @since: 18/07/2014 - 10:17:35
   */
 public class MTCSKHDAOImpl implements MTCSKHDAO { 
	private IRepository repo; 
 
 	/**@author TOANTM1
  	 * 18/07/2014 - 10:17:35
  	 * For: 
  	 * @description: 
  	 */
 	@Override 
	public List<MTCSKH> getMTCSKHBySessionId(String sessionId) throws DataAccessException { 
 		List<Object> params=new ArrayList<Object>();
 		params.add(sessionId);
		return repo.getListBySQL(MTCSKH.class, " select * from MT_CSKH where trim(session_id)=? ", params);
	}

	public IRepository getRepo() {
		return repo;
	}

	public void setRepo(IRepository repo) {
		this.repo = repo;
	} 
} 
 
